using UnityEngine;
using System.Collections;

public enum Command
{
	HOST_GAME,
	LIST_GAMES,
	JOIN_GAME,
	START_GAME,
	TEAM_SELECT,
	MAP_SELECT,
};

public class MenuCommandMes : Message
{
	private Command mCom;
	private int mData1, mData2;
	
	public MenuCommandMes(Command aCom, int aData){Set(aCom, aData);}
	
	public void Set(Command aCom, int aData)
	{
		mCom = aCom;
		mData1 = aData;
	}
	
	public void Set(Command aCom, int aData1, int aData2)
	{
		Set(aCom, aData1);
		mData2 = aData2;
	}
	
	override public void pack()
	{
		//U#TYPE#DATA#DATA#
		messageBuffer = "U#" + mCom.ToString("D") + "#" + mData1 + "#" + mData2 + "#\0";
	}
}
